package com.product.shop.dao;

import com.product.shop.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author brh
 * @email sunlightcs@gmail.com
 * @date 2022-02-22 16:30:11
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    @Select("select * from user where nickname=#{nickname}")
    UserEntity findByUser(@Param("nickname") String nickname);
}
